//
//  BBScanHistoryModel.m
//  BlockBrowser
//
//  Created by apple on 2018/4/8.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "BBScanHistoryModel.h"

@implementation BBScanHistoryModel
- (UIImage *)iconImage{
    if ([self.url containsString:@"baidu"]) {
        return [UIImage imageNamed:@"baidu"];
    }
    if ([self.url containsString:@"sina"]) {
       return [UIImage imageNamed:@"新浪"];
    }
    if ([self.url containsString:@"suning"]) {
       return [UIImage imageNamed:@"苏宁"];
    }
    if ([self.url containsString:@"weibo"]) {
        return [UIImage imageNamed:@"微博2"];
    }
    if ([self.url containsString:@"ctrip"]) {
        return [UIImage imageNamed:@"xiecheng"];
        
    }
    if ([self.url containsString:@"taobao"]) {
        return [UIImage imageNamed:@"tao"];
    }
    if ([self.url containsString:@"youku"]) {
        return [UIImage imageNamed:@"优酷"];
        
    }
    if ([self.url containsString:@"58"]) {
        return [UIImage imageNamed:@"58"];
        
    }
    if ([self.url containsString:@"guazi"]) {
        return [UIImage imageNamed:@"瓜子"];
        
    }
    
    return [UIImage imageNamed:@"网络_l"];
}
@end
